<div class="productCompareHeader">
			<div class="links">
				<a href="{url label=productComparePdf categoryKey=$category->getSlug() subCategoryKey=$subCategory->getSlug() listOfProducts=$listOfProducts}" title="PDF" target="_blank" class="pdf">{'PDF'|t}</a>
				{assign var=subCategoryDescription value=$subCategory->getCategoryDescription()}
				{assign var=categoryDescription value=$category->getCategoryDescription()}
				<a href="http://www.facebook.com/sharer/sharer.php?u={url label=current}&t={'Compare'|t} {$subCategoryDescription->getName()} {$categoryDescription->getName()}" target="_blank" title="{'share'|t}" class="shareList">{'share'|t}</a>
			</div>
			<h1>{'Compare'|t} {$subCategoryDescription->getName()} {$categoryDescription->getName()}</h1>

		</div>
		
		<table class="compareProductsTable">
			{foreach from=$tableData item=row name=rows key=k99}
			<tr{if isset($_rowsMaxLength[$k99]) && $_rowsMaxLength[$k99] gt 28} class="ComparisonSpecialValue"{/if}>
				{foreach from=$row item=item name=l}
				{assign var=productObj value=$productsArray[$smarty.foreach.l.index]}
				<td class="{if $smarty.foreach.l.first}productCompareLabels{else}productCompareItem{/if}">
					<div class="{if !$smarty.foreach.rows.first}item{/if} {if isset($specialClasses[$smarty.foreach.rows.index])}{$specialClasses[$smarty.foreach.rows.index]}{else}{/if}">
						{if $smarty.foreach.l.first}
							{$item}
						{else}
							{if $smarty.foreach.rows.index eq 0}
								<a href="{url label=productView productKey=$productObj->getSlug() subCategoryKey=$subCategory->getSlug() categoryKey=$category->getSlug()}" title="{$productObj->getName()}"><img src="{$urlStatic}/{image src=$productObj->getMainImage() h=310}" height="310" alt="{$productObj->getName()}" title="{$productObj->getName()}" /></a>
							{elseif $smarty.foreach.rows.index eq 1}
								<h2><a href="{url label=productView productKey=$productObj->getSlug() subCategoryKey=$subCategory->getSlug() categoryKey=$category->getSlug()}" title="{$productObj->getName()}">{$item}</a></h2>
							{elseif $smarty.foreach.rows.index eq 2}
								{assign var=manufacturer value=$productObj->getManufacturer()}
								<a href="{url label=mainCategoryView categoryKey=$category->getSlug() subCategoryKey=$manufacturer->getSlug()}" title="{$manufacturer->getName()}"><img src="{$urlStatic}/{image src=$manufacturer->getImage() h=40}" alt="{$manufacturer->getName()}"/></a>
							{elseif $smarty.foreach.rows.last}
								{'starting from'|t}
								<span class="price">{$item}</span>								
							{else}
								{$item}
							{/if}
						{/if}

					</div>
				</td>
				{/foreach}
			</tr>
			{/foreach}
			<tr>
				<td class="productCompareLabels">&nbsp;</td>
				{foreach from=$productsArray item=prod name=p}
				{if $smarty.foreach.p.index > 0}
				<td class="productCompareItem">
					<div class="removeButton">
						<a href="#" rel="nofollow" title="{'remove from compare'|t}" id="removeFromCompare{$prod->getId()}" class="remove">{'remove from compare'|t}</a></div>
					<script type="text/javascript">{literal}
						$(function() {
							$('#removeFromCompare{/literal}{$prod->getId()}{literal}').click(function() {
								$('#ajaxLoader').show();

								$.post("{/literal}{url label=emptyMyList}{literal}",
								{productKey:'{/literal}{$prod->getSlug()}{literal}', reload:'{/literal}{$subCategoryKey}{literal}'},
								function(response) {
									eval(response);
									$('#baloonAddToCompare').fadeIn('slow');

								});
								//setTimeout("$('#baloonAddToCompare').fadeOut('slow');", 4000);
								$('#ajaxLoader').hide();
								return false;

							});
						});{/literal}
					</script>
				</td>
				{/if}
				{/foreach}
			</tr>
		</table>



		<div class="clearBoth"></div>
